package com.cskaoyan.service;

import com.cskaoyan.bean.User;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Override
    public void sayHello(String name) {
        System.out.println("hello " + name);
    }

    @Override
    public String sayHello2(String name) {
        String result = "hello " + name;
        System.out.println(result);
        return result;
    }

    @Override
    public User sayHello3(String name) {
        String result = "hello " + name;
        System.out.println(result);
        return null;
    }

    @Override
    public User sayHello4(String name, String name2) {
        return null;
    }

    @Override
    public void sayHello5() {

    }
}
